<template>
  <div class="tip-container">
    <h3>小贴士</h3>
    <div class="tip-list">
      <p class="tip-item" v-for="(item, index) in tips" :key="index">{{ item }}</p>
    </div>
  </div>
</template>

<script>
export default {
  name: 'tips',
  props: {
    tips: {
      type: Array,
      require: true
    }
  }
}
</script>

<style lang="less" scoped>
.tip-container {
  padding: 10px;

  h3 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    line-height: 40px;
  }

  .tip-list {
    margin-top: 10px;
    .tip-item {
      color: #555;
      line-height: 24px;
      margin-bottom: 15px;
    }
  }
}
</style>
